/* pages/doctor/doctor.scss */
.doctor-container {
  min-height: 100vh;
  background-color: #f8f9fa;
}

/* 标签页导航 */
.tab-nav {
  display: flex;
  background: white;
  border-bottom: 1rpx solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20rpx 16rpx;
  transition: all 0.3s ease;
}

.tab-item.active {
  color: #1890ff;
}

.tab-icon {
  font-size: 32rpx;
  margin-bottom: 8rpx;
}

.tab-name {
  font-size: 24rpx;
  font-weight: 500;
}

/* 标签页内容 */
.tab-content {
  padding: 20rpx;
}

/* 区域标题 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20rpx;
}

.section-title {
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
}

.header-actions {
  display: flex;
  gap: 12rpx;
}

.action-btn {
  padding: 12rpx 20rpx;
  border-radius: 8rpx;
  font-size: 24rpx;
  border: 1rpx solid #d9d9d9;
  background: white;
  color: #666;
}

.action-btn.primary {
  background: #1890ff;
  color: white;
  border-color: #1890ff;
}

.action-btn.secondary {
  background: #f0f0f0;
  color: #666;
  border-color: #d9d9d9;
}

/* 患者卡片 */
.patients-list {
  display: flex;
  flex-direction: column;
  gap: 20rpx;
}

.patient-card {
  background: white;
  border-radius: 12rpx;
  padding: 24rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
}

.patient-header {
  display: flex;
  align-items: center;
  margin-bottom: 20rpx;
}

.patient-avatar {
  width: 80rpx;
  height: 80rpx;
  border-radius: 50%;
  margin-right: 16rpx;
}

.patient-info {
  flex: 1;
}

.patient-name {
  font-size: 28rpx;
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: 8rpx;
}

.patient-details {
  font-size: 24rpx;
  color: #666;
}

.health-status {
  padding: 8rpx 16rpx;
  border-radius: 20rpx;
  font-size: 22rpx;
  font-weight: 500;
}

.health-status.good {
  background: #f6ffed;
  color: #52c41a;
}

.health-status.warning {
  background: #fff7e6;
  color: #fa8c16;
}

/* 健康指标 */
.health-metrics {
  display: flex;
  gap: 24rpx;
  margin-bottom: 20rpx;
  padding: 16rpx;
  background: #f8f9fa;
  border-radius: 8rpx;
}

.metric-item {
  flex: 1;
  text-align: center;
}

.metric-label {
  font-size: 22rpx;
  color: #999;
  display: block;
  margin-bottom: 8rpx;
}

.metric-value {
  font-size: 26rpx;
  font-weight: 600;
  color: #1890ff;
}

/* 饮食历史 */
.diet-history {
  margin-bottom: 20rpx;
}

.history-title {
  font-size: 26rpx;
  font-weight: 500;
  color: #333;
  margin-bottom: 12rpx;
  display: block;
}

.history-item {
  display: flex;
  align-items: center;
  padding: 8rpx 0;
  border-bottom: 1rpx solid #f0f0f0;
}

.history-item:last-child {
  border-bottom: none;
}

.diet-date {
  font-size: 22rpx;
  color: #999;
  width: 120rpx;
}

.diet-meal {
  font-size: 24rpx;
  color: #666;
  width: 80rpx;
  margin-right: 16rpx;
}

.diet-food {
  font-size: 24rpx;
  color: #333;
  flex: 1;
}

/* 患者操作按钮 */
.patient-actions {
  display: flex;
  gap: 12rpx;
}

/* 医生档案 */
.profile-section {
  background: white;
  border-radius: 12rpx;
  padding: 24rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
}

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 32rpx;
  padding-bottom: 24rpx;
  border-bottom: 1rpx solid #f0f0f0;
}

.doctor-avatar {
  width: 120rpx;
  height: 120rpx;
  border-radius: 50%;
  margin-right: 24rpx;
}

.doctor-basic-info {
  flex: 1;
}

.doctor-name {
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: 8rpx;
}

.doctor-title {
  font-size: 26rpx;
  color: #1890ff;
  display: block;
  margin-bottom: 8rpx;
}

.doctor-department {
  font-size: 24rpx;
  color: #666;
}

.edit-btn {
  padding: 12rpx 24rpx;
  background: #1890ff;
  color: white;
  border-radius: 8rpx;
  font-size: 24rpx;
  border: none;
}

/* 编辑表单 */
.edit-form {
  display: flex;
  flex-direction: column;
  gap: 24rpx;
}

.form-item {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 26rpx;
  color: #333;
  margin-bottom: 12rpx;
  font-weight: 500;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12rpx;
}

.form-input, .form-textarea {
  padding: 16rpx 20rpx;
  border: 2rpx solid #e8e8e8;
  border-radius: 8rpx;
  font-size: 26rpx;
  color: #333;
  background: #fafafa;
}

.form-textarea {
  min-height: 120rpx;
}

.add-btn {
  padding: 8rpx 16rpx;
  background: #f0f0f0;
  color: #666;
  border-radius: 6rpx;
  font-size: 22rpx;
  border: none;
}

/* 标签列表 */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12rpx;
}

.tag-item {
  display: flex;
  align-items: center;
  padding: 8rpx 16rpx;
  background: #e6f7ff;
  color: #1890ff;
  border-radius: 20rpx;
  font-size: 24rpx;
}

.tag-text {
  margin-right: 8rpx;
}

.tag-remove {
  font-size: 28rpx;
  color: #ff4d4f;
  cursor: pointer;
}

/* 表单操作按钮 */
.form-actions {
  display: flex;
  gap: 16rpx;
  margin-top: 32rpx;
}

.cancel-btn, .save-btn {
  flex: 1;
  padding: 20rpx;
  border-radius: 8rpx;
  font-size: 28rpx;
  font-weight: 500;
  border: none;
}

.cancel-btn {
  background: #f0f0f0;
  color: #666;
}

.save-btn {
  background: #1890ff;
  color: white;
}

/* 查看模式 */
.profile-content {
  display: flex;
  flex-direction: column;
  gap: 32rpx;
}

.info-section {
  display: flex;
  flex-direction: column;
  gap: 16rpx;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16rpx 0;
  border-bottom: 1rpx solid #f8f8f8;
}

.info-label {
  font-size: 26rpx;
  color: #666;
}

.info-value {
  font-size: 26rpx;
  color: #333;
  font-weight: 500;
}

.specialties-list, .certifications-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12rpx;
}

.specialty-item, .certification-item {
  padding: 12rpx 20rpx;
  background: #e6f7ff;
  color: #1890ff;
  border-radius: 20rpx;
  font-size: 24rpx;
}

.introduction-text {
  font-size: 26rpx;
  color: #666;
  line-height: 1.6;
}

/* 消息列表 */
.messages-section {
  background: white;
  border-radius: 12rpx;
  padding: 24rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
}

.unread-count {
  font-size: 24rpx;
  color: #ff4d4f;
  background: #fff2f0;
  padding: 6rpx 12rpx;
  border-radius: 12rpx;
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 16rpx;
}

.message-item {
  display: flex;
  align-items: center;
  padding: 20rpx;
  border-radius: 8rpx;
  background: #f8f9fa;
  transition: background-color 0.2s ease;
}

.message-item:active {
  background: #e6f7ff;
}

.message-item .patient-avatar {
  width: 80rpx;
  height: 80rpx;
  border-radius: 50%;
  margin-right: 16rpx;
}

.message-content {
  flex: 1;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8rpx;
}

.patient-name {
  font-size: 26rpx;
  font-weight: 500;
  color: #333;
}

.message-time {
  font-size: 22rpx;
  color: #999;
}

.message-text {
  font-size: 24rpx;
  color: #666;
  line-height: 1.4;
}

.message-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8rpx;
}

.unread-badge {
  background: #ff4d4f;
  color: white;
  font-size: 20rpx;
  padding: 4rpx 8rpx;
  border-radius: 10rpx;
  min-width: 32rpx;
  text-align: center;
}

.status-dot {
  width: 16rpx;
  height: 16rpx;
  border-radius: 50%;
}

.status-dot.active {
  background: #52c41a;
}

.status-dot.offline {
  background: #d9d9d9;
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80rpx 20rpx;
  text-align: center;
}

.empty-icon {
  font-size: 80rpx;
  margin-bottom: 20rpx;
}

.empty-text {
  font-size: 28rpx;
  color: #333;
  margin-bottom: 12rpx;
  font-weight: 500;
}

.empty-desc {
  font-size: 24rpx;
  color: #999;
}